/**
 * 
 */
package com.imarban.spring.business.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.imarban.spring.dao.GenericDao;
import com.imarban.spring.model.User;

/**
 * @author imarban
 *
 */

@Service("userBs")
@Scope(value=BeanDefinition.SCOPE_SINGLETON)
public class UserBs {

	@Autowired
	private GenericDao genericDao;
	
	public Integer guardar(User user){
		
		return (Integer) genericDao.save(user);
		
	}
	
}
